From: Guido Günther Date: Sun, 4 Jan 2026 16:39:03 +0000 (+0100) Subject: mixer-control: Check for invalid input X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2^2^2^2^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=48d2cdef4971e74042e6330a7dc1c62a93d40a76;p=gnome-shell.git mixer-control: Check for invalid input With pipewire 1.5.84 there can be a zombie default-source as the current profile can't have a stream, see https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/5053#note_3256202 Signed-off-by: Guido Günther Origin: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31 Bug: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/34 Bug-Debian: https://bugs.debian.org/1126514 Applied-upstream: gnome-shell 50, commit:798230599950607ec285daecd070f5bcb28580e4 Gbp-Pq: Topic libgvc Gbp-Pq: Name mixer-control-Check-for-invalid-input.patch --- diff --git a/subprojects/gvc/gvc-mixer-control.c b/subprojects/gvc/gvc-mixer-control.c index b45f15a4f..251f78a24 100644 --- a/subprojects/gvc/gvc-mixer-control.c +++ b/subprojects/gvc/gvc-mixer-control.c @@ -980,11 +980,14 @@ _set_default_source (GvcMixerControl *control, new_id); input = gvc_mixer_control_lookup_device_from_stream (control, stream); - - g_signal_emit (G_OBJECT (control), - signals[ACTIVE_INPUT_UPDATE], - 0, - gvc_mixer_ui_device_get_id (input)); + if (input) { + g_signal_emit (G_OBJECT (control), + signals[ACTIVE_INPUT_UPDATE], + 0, + gvc_mixer_ui_device_get_id (input)); + } else { + g_warning ("Can't find input for stream-id %d",new_id); + } } }